package com.dlwx.parttimetalent.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/12/12.
 */

public class AuthCoreBean {

    /**
     * code : 200
     * result : 我的认证中心获取成功
     * body : {"phoneAuth":{"status":1,"text":"已认证","reason":""},"identAuth":{"status":3,"text":"审核中","reason":""},"alipayAuth":{"status":2,"text":"未认证","reason":""},"wxAuth":{"status":2,"text":"未认证","reason":""},"sinaAuth":{"status":2,"text":"未认证","reason":""},"skillAuth":{"status":2,"text":"未认证","reason":""},"eduAuth":{"status":3,"text":"审核中","reason":""},"driveAuth":{"status":3,"text":"审核中","reason":""}}
     */

    private int code;
    private String result;
    private BodyBean body;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public static class BodyBean {
        /**
         * phoneAuth : {"status":1,"text":"已认证","reason":""}
         * identAuth : {"status":3,"text":"审核中","reason":""}
         * alipayAuth : {"status":2,"text":"未认证","reason":""}
         * wxAuth : {"status":2,"text":"未认证","reason":""}
         * sinaAuth : {"status":2,"text":"未认证","reason":""}
         * skillAuth : {"status":2,"text":"未认证","reason":""}
         * eduAuth : {"status":3,"text":"审核中","reason":""}
         * driveAuth : {"status":3,"text":"审核中","reason":""}
         */

        private PhoneAuthBean phoneAuth;
        private IdentAuthBean identAuth;
        private AlipayAuthBean alipayAuth;
        private WxAuthBean wxAuth;
        private SinaAuthBean sinaAuth;
        private SkillAuthBean skillAuth;
        private EduAuthBean eduAuth;
        private DriveAuthBean driveAuth;

        public PhoneAuthBean getPhoneAuth() {
            return phoneAuth;
        }

        public void setPhoneAuth(PhoneAuthBean phoneAuth) {
            this.phoneAuth = phoneAuth;
        }

        public IdentAuthBean getIdentAuth() {
            return identAuth;
        }

        public void setIdentAuth(IdentAuthBean identAuth) {
            this.identAuth = identAuth;
        }

        public AlipayAuthBean getAlipayAuth() {
            return alipayAuth;
        }

        public void setAlipayAuth(AlipayAuthBean alipayAuth) {
            this.alipayAuth = alipayAuth;
        }

        public WxAuthBean getWxAuth() {
            return wxAuth;
        }

        public void setWxAuth(WxAuthBean wxAuth) {
            this.wxAuth = wxAuth;
        }

        public SinaAuthBean getSinaAuth() {
            return sinaAuth;
        }

        public void setSinaAuth(SinaAuthBean sinaAuth) {
            this.sinaAuth = sinaAuth;
        }

        public SkillAuthBean getSkillAuth() {
            return skillAuth;
        }

        public void setSkillAuth(SkillAuthBean skillAuth) {
            this.skillAuth = skillAuth;
        }

        public EduAuthBean getEduAuth() {
            return eduAuth;
        }

        public void setEduAuth(EduAuthBean eduAuth) {
            this.eduAuth = eduAuth;
        }

        public DriveAuthBean getDriveAuth() {
            return driveAuth;
        }

        public void setDriveAuth(DriveAuthBean driveAuth) {
            this.driveAuth = driveAuth;
        }

        public static class PhoneAuthBean implements Parcelable {
            /**
             * status : 1
             * text : 已认证
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected PhoneAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<PhoneAuthBean> CREATOR = new Creator<PhoneAuthBean>() {
                @Override
                public PhoneAuthBean createFromParcel(Parcel in) {
                    return new PhoneAuthBean(in);
                }

                @Override
                public PhoneAuthBean[] newArray(int size) {
                    return new PhoneAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }

        public static class IdentAuthBean implements Parcelable{
            /**
             * status : 3
             * text : 审核中
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected IdentAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<IdentAuthBean> CREATOR = new Creator<IdentAuthBean>() {
                @Override
                public IdentAuthBean createFromParcel(Parcel in) {
                    return new IdentAuthBean(in);
                }

                @Override
                public IdentAuthBean[] newArray(int size) {
                    return new IdentAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }

        public static class AlipayAuthBean implements Parcelable {
            /**
             * status : 2
             * text : 未认证
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected AlipayAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }

            @Override
            public int describeContents() {
                return 0;
            }

            public static final Creator<AlipayAuthBean> CREATOR = new Creator<AlipayAuthBean>() {
                @Override
                public AlipayAuthBean createFromParcel(Parcel in) {
                    return new AlipayAuthBean(in);
                }

                @Override
                public AlipayAuthBean[] newArray(int size) {
                    return new AlipayAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }
        }

        public static class WxAuthBean implements Parcelable{
            /**
             * status : 2
             * text : 未认证
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected WxAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }

            @Override
            public int describeContents() {
                return 0;
            }

            public static final Creator<WxAuthBean> CREATOR = new Creator<WxAuthBean>() {
                @Override
                public WxAuthBean createFromParcel(Parcel in) {
                    return new WxAuthBean(in);
                }

                @Override
                public WxAuthBean[] newArray(int size) {
                    return new WxAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }
        }

        public static class SinaAuthBean implements Parcelable {
            /**
             * status : 2
             * text : 未认证
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected SinaAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<SinaAuthBean> CREATOR = new Creator<SinaAuthBean>() {
                @Override
                public SinaAuthBean createFromParcel(Parcel in) {
                    return new SinaAuthBean(in);
                }

                @Override
                public SinaAuthBean[] newArray(int size) {
                    return new SinaAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }

        public static class SkillAuthBean implements Parcelable{
            /**
             * status : 2
             * text : 未认证
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected SkillAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<SkillAuthBean> CREATOR = new Creator<SkillAuthBean>() {
                @Override
                public SkillAuthBean createFromParcel(Parcel in) {
                    return new SkillAuthBean(in);
                }

                @Override
                public SkillAuthBean[] newArray(int size) {
                    return new SkillAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }

        public static class EduAuthBean implements Parcelable{
            /**
             * status : 3
             * text : 审核中
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected EduAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<EduAuthBean> CREATOR = new Creator<EduAuthBean>() {
                @Override
                public EduAuthBean createFromParcel(Parcel in) {
                    return new EduAuthBean(in);
                }

                @Override
                public EduAuthBean[] newArray(int size) {
                    return new EduAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }

        public static class DriveAuthBean implements Parcelable{
            /**
             * status : 3
             * text : 审核中
             * reason :
             */

            private int status;
            private String text;
            private String reason;

            protected DriveAuthBean(Parcel in) {
                status = in.readInt();
                text = in.readString();
                reason = in.readString();
            }

            public static final Creator<DriveAuthBean> CREATOR = new Creator<DriveAuthBean>() {
                @Override
                public DriveAuthBean createFromParcel(Parcel in) {
                    return new DriveAuthBean(in);
                }

                @Override
                public DriveAuthBean[] newArray(int size) {
                    return new DriveAuthBean[size];
                }
            };

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(status);
                dest.writeString(text);
                dest.writeString(reason);
            }
        }
    }
}
